<html>
	<head>
    	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </head>
    <body>
		<?php
			$dice = 100;
			$rolls = 1000;
			
			for($i=0;$i<$dice;$i++){
				$eyes[$i] = 0;
			}
			for($throw=0;$throw<$rolls;$throw++){
				$random = rand(1,$dice);
				$eyes[$random-1]++;
				
			}
			echo "<table border=1><tr><th>øjne</th><th>antal</th></tr>";
			for($i=0;$i<$dice;$i++){
				echo "<tr><td>";
				echo $i+1;
				echo "</td><td>$eyes[$i]</td></tr>";
			}
			echo "</table>";
        ?>
        <footer>&copy; Frederik Mattern</footer>
	</body>
</html>